package com.sgj.springcloud.myhandler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.sgj.springcloud.entities.CommonResult;
import com.sgj.springcloud.entities.Payment;
import com.sgj.springcloud.enums.ResEnum;

/**
 * @author 沈国纪
 * @date 2021/6/5 12:12
 */
public class CustomerBlockHandler {
	public static CommonResult handlerException(BlockException exception) {
		return new CommonResult(ResEnum.SUCCESS_FIND_CUSTOM2.getCode(),
				ResEnum.SUCCESS_FIND_CUSTOM2.getMessage() + "handlerException------1");
	}

	public static CommonResult handlerException2(BlockException exception) {
		return new CommonResult(ResEnum.SUCCESS_FIND_CUSTOM2.getCode(),
				ResEnum.SUCCESS_FIND_CUSTOM2.getMessage() + "handlerException------2");
	}
}
